package com.ljw.spring.annotation.bean;

import lombok.Data;

/**
 * @FileName Color
 * @Description TODO
 * @Author ljw
 * @Date 2021/2/1 17:42
 * @Version 1.0
 */
@Data
public class Color {

    private String name;

    public Color() {
    }

    public Color(String name) {
        this.name = name;
        System.out.println("创建color实例");
    }

    public void init(){
        System.out.println("color实例初始化方法");
    }

    public void destroy(){
        System.out.println("color实例销毁方法");
    }
}
